<template>
   <div class="content">
      <div class="title">{{data.title}}</div>
      <div class="item" v-for="item in data.data" :key="item.id">
        <span>{{item.title}}</span>
        <el-button type="primary">查看详情</el-button>
      </div>
      <div class="pagination">
        <el-pagination
        prev-text="上一页"
        next-text="下一页"
            background
            layout="prev, pager, next"
            :total="data.data.length">
            </el-pagination>
        </div>
    </div>
</template>
<script>
export default {
    props:{
        data:{
            type:Object,
            default:()=>{
                return {}
            }
        }
    }
}
</script>
